<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2017/6/17
 * Time: 11:33
 */

function createRandomNum($num){
    $randomNum = '';
    for ($i=0;$i<$num;$i++){
        $randomNum.= strval(mt_rand(0,9));
    }
    return $randomNum;
}


function responseJson($status,$message,$data=null){
    $temp = array(
        'status'=>$status ,
        'message'=> $message,
        'data'=> $data
    );

    return json_encode($temp);
}